package com.zhentao.job;

import com.xxl.job.core.handler.annotation.XxlJob;
import com.zhentao.service.HortArticleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class ComputeHotArticleJob {
    @Autowired
    private HortArticleService hortArticleService;

    @XxlJob("computeHotArticle")
    public void handle() {
        log.info("热文章分值计算调度任务还是执行---------------------------");
        hortArticleService.computeHotArticle();
    }
}
